<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改面试评价')" />
    <th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-evaluate-edit" th:object="${evaluate}">
            <input name="evaId" th:field="*{evaId}" type="hidden">
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">面试者：</label>
                <div class="col-sm-8">
                    <input name="resId" th:field="${resume.resName}" class="form-control" type="text" required disabled>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">面试官1：</label>
                <div class="col-sm-8">
                    <input name="userId1" th:field="*{userId1}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">面试官2：</label>
                <div class="col-sm-8">
                    <input name="userId2" th:field="*{userId2}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">面试官3：</label>
                <div class="col-sm-8">
                    <input name="userId3" th:field="*{userId3}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">面试官4：</label>
                <div class="col-sm-8">
                    <input name="userId4" th:field="*{userId4}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">面试的时间：</label>
                <div class="col-sm-8">
                    <div class="input-group date">
                        <input name="evaTime" th:value="${#dates.format(evaluate.evaTime, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                    </div>
                </div>
            </div>
            <div class="form-group" style="display: none;">
                <label class="col-sm-3 control-label">面试评价：</label>
                <div class="col-sm-8">
                    <textarea name="evaText" class="form-control">[[*{evaText}]]</textarea>
                </div>
            </div>
            <div class="form-group" style="display: none;">    
                <label class="col-sm-3 control-label">添加人：</label>
                <div class="col-sm-8">
                    <input name="cu" th:field="*{cu}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group" style="display: none;">    
                <label class="col-sm-3 control-label">添加时间：</label>
                <div class="col-sm-8">
                    <div class="input-group date">
                        <input name="ct" th:value="${#dates.format(evaluate.ct, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                    </div>
                </div>
            </div>
            <div class="form-group" style="display: none;">    
                <label class="col-sm-3 control-label">修改人：</label>
                <div class="col-sm-8">
                    <input name="uu" th:field="*{uu}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group" style="display: none;">    
                <label class="col-sm-3 control-label">修改时间：</label>
                <div class="col-sm-8">
                    <div class="input-group date">
                        <input name="ut" th:value="${#dates.format(evaluate.ut, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                    </div>
                </div>
            </div>
            <div class="form-group" style="display: none;">    
                <label class="col-sm-3 control-label">考察能力 填json：</label>
                <div class="col-sm-8">
                    <input name="eavAbility1" th:field="*{eavAbility1}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group" style="display: none;">    
                <label class="col-sm-3 control-label">考察能力：</label>
                <div class="col-sm-8">
                    <input name="eavAbility2" th:field="*{eavAbility2}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group" style="display: none;">    
                <label class="col-sm-3 control-label">考察能力：</label>
                <div class="col-sm-8">
                    <input name="eavAbility3" th:field="*{eavAbility3}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group" style="display: none;">    
                <label class="col-sm-3 control-label">考察能力：</label>
                <div class="col-sm-8">
                    <input name="eavAbility4" th:field="*{eavAbility4}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group" style="display: none;">    
                <label class="col-sm-3 control-label">考察能力：</label>
                <div class="col-sm-8">
                    <input name="eavAbility5" th:field="*{eavAbility5}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group" style="display: none;">    
                <label class="col-sm-3 control-label">考察能力：</label>
                <div class="col-sm-8">
                    <input name="eavAbility6" th:field="*{eavAbility6}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group" style="display: none;">    
                <label class="col-sm-3 control-label">考察能力：</label>
                <div class="col-sm-8">
                    <input name="eavAbility7" th:field="*{eavAbility7}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group" style="display: none;">    
                <label class="col-sm-3 control-label">确认事项：</label>
                <div class="col-sm-8">
                    <input name="evaIs1" th:field="*{evaIs1}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group" style="display: none;">    
                <label class="col-sm-3 control-label">确认事项：</label>
                <div class="col-sm-8">
                    <input name="evaIs2" th:field="*{evaIs2}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group" style="display: none;">    
                <label class="col-sm-3 control-label">确认事项：</label>
                <div class="col-sm-8">
                    <input name="evaIs3" th:field="*{evaIs3}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group" style="display: none;">    
                <label class="col-sm-3 control-label">确认事项：</label>
                <div class="col-sm-8">
                    <input name="evaIs4" th:field="*{evaIs4}" class="form-control" type="text">
                </div>
            </div>
            <div class="layui-layer-btn layui-layer-btn-">
                <a class="layui-layer-btn0" onclick="javaScript:submitHandler();window.location.href = '/system/resume' ">确定</a>
                <a class="layui-layer-btn1" onclick="javaScript:$.form.reset();" >重置</a>
                <a class="layui-layer-btn2" onclick="javaScript:window.history.back(); " >返回</a>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <th:block th:include="include :: datetimepicker-js" />
    <script th:inline="javascript">
        var prefix = ctx + "system/evaluate";
        $("#form-evaluate-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-evaluate-edit').serialize());
            }
        }

        $("input[name='evaTime']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });

        $("input[name='ct']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });

        $("input[name='ut']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });
    </script>
</body>
</html>